package org.example.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * ClassName: tasks
 * Description:
 *
 * @Author Kotaro
 * @Create 2024/11/26 15:55
 * @Version 1.0
 */
@Data
public class Tasks {
   private Integer taskId;  //任务ID
   private String requesterId;  //请求人ID
   private String requesterName;  //请求人名称
   private String gender;//请求人性别
   private Integer age;//请求人年龄
   private String contactNumber;//请求人联系电话
   private Boolean selfCare;             // `self_care`
   private Boolean isLivingAlone;        // `is_living_alone`
   private String taskTitle;  //任务标题
   private Integer taskCategory;  //任务种类
   private String taskContent;  //任务内容
   private Integer currentPage;//任务页数

   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
   private Date appointmentTime;  //任务预约时间

   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 格式化时间
   private Date createdAt;  //创建时间

   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 格式化时间
   private Date completedAt;  //结束时间

   private Integer taskStatus;  //任务状态
   private String receiverId;  //接受人ID
   private String receiverName;  //接受人名称
   private Integer volunteerAge;
   private String volunteerGender;
   private Integer volunteerRating;
   private Integer volunteerCompletedTasks;
   private String volunteerOrganization;
   private Integer volunteerHours;
   private Integer rating;  //评价等级
   private String remark;  //备注
   private String comment; //评语
}
